import { request } from '@/utils';
import { api } from '@/config';

const {
  storeShop: {
    regionAdd,
    regionList
  },
} = api;
const fetch = {
  //新增区域
  fetchRegionAdd(data: any) {
    return request({
      url: regionAdd,
      method: 'form',
      data
    });
  },
  //区域列表
  fetchRegionList(data: any) {
    return request({
      url: regionList,
      method: 'form',
      data
    });
  }
};
export default fetch;
